package com.bulletelc.apollopre.entity;

import java.io.Serializable;
import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/19
 * desc  : 购物车列表数据/结算页(填写订单)数据列表
 */

public class CartListBean implements Serializable{

    /**
     * supplier_id : 1
     * supplier_name : 子弹头总公司
     * sub_total:500.0
     * product_list : [{"id":"291","cart_id":"117","product_id":"213","supplier_id":"1","name":"家居日用品全屋套餐一","product_sku_id":"1356","product_sku_title":"日用品-规格:一套","quantity":10,"price":69.9,"origin_price":"69.90","logo_url":"http://img-apollo-pre.local.bulletelc.com/store/Product/213/ed/m/ed240a0150b6f53dc02ac2d380302c7b.jpg"}]
     */

    private String supplier_id;
    private String supplier_name;
    private int invoice_id; //发票ID
    private String invoice_name;//发票名
    private double sub_total;
    private double sub_install_fee;
    /**
     * 存储CheckBox选中状态
     */
    private boolean isChecked=true;


    private List<CartProductListBean> product_list;

    public String getSupplier_id() {
        return supplier_id;
    }

    public void setSupplier_id(String supplier_id) {
        this.supplier_id = supplier_id;
    }

    public String getSupplier_name() {
        return supplier_name;
    }

    public double getSub_total() {
        return sub_total;
    }


    public int getInvoice_id() {
        return invoice_id;
    }

    public void setInvoice_id(int invoice_id) {
        this.invoice_id = invoice_id;
    }

    public String getInvoice_name() {
        return invoice_name;
    }

    public void setInvoice_name(String invoice_name) {
        this.invoice_name = invoice_name;
    }

    public void setSub_total(double sub_total) {
        this.sub_total = sub_total;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public List<CartProductListBean> getProduct_list() {
        return product_list;
    }

    public void setProduct_list(List<CartProductListBean> product_list) {
        this.product_list = product_list;
    }

    public double getSub_install_fee() {
        return sub_install_fee;
    }

    public void setSub_install_fee(double sub_install_fee) {
        this.sub_install_fee = sub_install_fee;
    }

    public static class CartProductListBean implements Serializable {
        /**
         * id : 291
         * cart_id : 117
         * product_id : 213
         * supplier_id : 1
         * name : 家居日用品全屋套餐一
         * product_sku_id : 1356
         * product_sku_title : 日用品-规格:一套
         * quantity : 10
         * price : 69.9
         * origin_price : 69.90
         * logo_url : http://img-apollo-pre.local.bulletelc.com/store/Product/213/ed/m/ed240a0150b6f53dc02ac2d380302c7b.jpg
         */

        private String id;
        private String cart_id;
        private String product_id;
        private String supplier_id;
        private String name;
        private String product_sku_id;
        private String product_sku_title;
        private int quantity;
        private double price;
        private String origin_price;
        private String logo_url;
        private double install_fee;
        private int is_install;

        /**
         * 存储CheckBox选中状态
         */
        private boolean isChecked=true;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCart_id() {
            return cart_id;
        }

        public void setCart_id(String cart_id) {
            this.cart_id = cart_id;
        }

        public String getProduct_id() {
            return product_id;
        }

        public void setProduct_id(String product_id) {
            this.product_id = product_id;
        }

        public String getSupplier_id() {
            return supplier_id;
        }

        public void setSupplier_id(String supplier_id) {
            this.supplier_id = supplier_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getProduct_sku_id() {
            return product_sku_id;
        }

        public void setProduct_sku_id(String product_sku_id) {
            this.product_sku_id = product_sku_id;
        }

        public String getProduct_sku_title() {
            return product_sku_title;
        }

        public void setProduct_sku_title(String product_sku_title) {
            this.product_sku_title = product_sku_title;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public String getOrigin_price() {
            return origin_price;
        }

        public void setOrigin_price(String origin_price) {
            this.origin_price = origin_price;
        }

        public String getLogo_url() {
            return logo_url;
        }

        public void setLogo_url(String logo_url) {
            this.logo_url = logo_url;
        }

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }

        public double getInstall_fee() {
            return install_fee;
        }

        public void setInstall_fee(double install_fee) {
            this.install_fee = install_fee;
        }

        public int getIs_install() {
            return is_install;
        }

        public void setIs_install(int is_install) {
            this.is_install = is_install;
        }

        @Override
        public String toString() {
            return "CartProductListBean{" +
                    "id='" + id + '\'' +
                    ", cart_id='" + cart_id + '\'' +
                    ", product_id='" + product_id + '\'' +
                    ", supplier_id='" + supplier_id + '\'' +
                    ", name='" + name + '\'' +
                    ", product_sku_id='" + product_sku_id + '\'' +
                    ", product_sku_title='" + product_sku_title + '\'' +
                    ", quantity=" + quantity +
                    ", price=" + price +
                    ", origin_price='" + origin_price + '\'' +
                    ", logo_url='" + logo_url + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CartListBean{" +
                "supplier_id='" + supplier_id + '\'' +
                ", supplier_name='" + supplier_name + '\'' +
                ", product_list=" + product_list +
                '}';
    }
}
